using TMPro;
using UnityEngine;
using Voodoo.Pattern;

public class PlayerTagView : MonoBehaviour
{
	private TextMeshProUGUI _playerTag;

	public bool isPlayer = true;

	private void OnEnable()
	{
		_playerTag = GetComponent<TextMeshProUGUI>();
		_playerTag.text = (isPlayer ? SingletonMB<DuelModeManager>.Instance.PlayersName : SingletonMB<DuelModeManager>.Instance.OpponentName);
	}
}
